<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Feedback
 *
 * @property int $id
 * @property string|null $module_type 举报模块
 * @property int|null $module_id 举报模块id
 * @property string|null $reason 原因
 * @property string|null $remark 其它说明
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property int|null $member_id 会员
 * @property-read \Illuminate\Database\Eloquent\Model|\Eloquent $module
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereMemberId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereModuleId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereModuleType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereReason($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereRemark($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class Feedback extends Model
{
    protected $fillable = ['module_type', 'module_id', 'reason', 'remark'];

    public function module()
    {
        return $this->morphTo();
    }
}
